package com.bayihouse.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bayihouse.model.entity.Unit;
import com.bayihouse.model.request.unit.UnitQueryRequest;
import com.bayihouse.model.vo.UnitVO;

import java.util.List;

/**
* @author Administrator
* @description 针对表【unit】的数据库操作Service
* @createDate 2024-09-17 10:28:03
*/
public interface UnitService extends IService<Unit> {
    UnitVO getUnitVO(Unit unit);

    Wrapper<Unit> getQueryWrapper(UnitQueryRequest unitQueryRequest);

    List<UnitVO> getUnitVOList(List<Unit> records);

    Long getUnitByHouseIdAndAddress(Long houseId, String address);
}
